home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Najgorsze komunikatory / Tlen.pl / tleninst60255.exe / sdk / TlenSources / plugin / plugin_customstatus.h
Encoding:
C/C++ Source or Header  |  2007-09-17  |  1.9 KB  |  71 lines

  1. #ifndef plugin_customstatusH
  2. #define plugin_customstatusH
  3.  
  4. #include <windows.h>
  5.  
  6. typedef struct {
  7.  
  8.  int structSize;        //wielko£µ struktury w bajtach
  9.  
  10.  int StateID;                   //ID stanu - liczba porzadkowa
  11.  TlenSingleImageDef Icon;        //Definicja ikonki odpowiadajacej
  12.  char *StateName;               //Nazwa stanu przedstawiana w okienku
  13.  
  14. } TlenStatusTextStateDef;
  15.  
  16. typedef struct {
  17.  
  18.  int structSize;        //wielko£µ struktury w bajtach
  19.  
  20.  int ItemID;                    //u┐ywane przy kasowaniu.
  21.  
  22.  int StateID;                   //ID stanu uzytego przez dany Item
  23.  
  24.  char *Name;                    //Nazwa stanu przedstawiana w okienku
  25.  char *StatusText;              //tekst stanu opisowego
  26.  
  27.  int TimeStamp;                 //Pod k╣tem GG - kiedy wr≤cΩ
  28.  
  29. } TlenStatusTextItemDef;
  30.  
  31. typedef struct {
  32.  
  33.  int structSize;        //wielko£µ struktury w bajtach
  34.  
  35.  char *ProtocolID;
  36.  
  37.  int ShowState;                 //Ktora ikonke zaznaczyc
  38.  char *StatusText;
  39.  char *StatusName;
  40.  int TimeStamp;                 //Z mysla o GG...
  41.  
  42.  int StatusTextMaxLen;          //Maksymalna d│ugo£µ stanu jak╣ mo┐na ustawiµ
  43.  
  44.  TlenStatusTextStateDef *States; //mozliwe stany
  45.  int StatesCount;
  46.  
  47.  TlenStatusTextItemDef *Items;   //lista stanow opisowych
  48.  int ItemsCount;
  49.  
  50.  int Flags;
  51.  
  52. } TlenStatusTextWindowInfoDef;
  53.  
  54. #define STATUSTEXT_SHOWWINDOWFLAG_SHOWDATETIME          0x0001 //da mo┐liwo£µ wyboru daty i czasu (vide GG)
  55.  
  56. #define TLEN_STATUSTEXT_SHOWWINDOW     "Tlen/StatusText/ShowWindow"
  57. //WPARAM TlenStatusTextWindowInfoDef*
  58.  
  59. //LPARAM 0 - klikniΩto ok, 1 - klikniΩto anuluj
  60. #define PF_STATUSTEXT_SET              "PFStatusTextSet"
  61.  
  62. #define PF_STATUSTEXT_ITEMCHANGED      "PFStatusTextListChanged"
  63.  
  64. //WPARAM:
  65. #define STATUSTEXT_ITEMCHANGED_ADD              1
  66. #define STATUSTEXT_ITEMCHANGED_REMOVE           2
  67. #define STATUSTEXT_ITEMCHANGED_CHANGE           3
  68. //LPARAM: TlenStatusTextItemDef* (wa┐ne jest ItemIndex - index 0 based na li£cie
  69.  
  70. #endif
  71.